import { request, config } from 'utils'

const { api } = config
const { processes, viewProcess } = api

export function queryGridData (params) {
  return request({
    url: processes,
    method: 'get',
    data: params,
  })
}

export function queryGridDef (params) {
  return request({
    url: viewProcess,
    method: 'get',
    data: params,
  })
}
